package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.PlanProductVO;
import com.digitalchina.lxnsy.toolkit.StringUtil;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：郑皓
 * 创建时间：2018/8/1 17:10
 * 修改备注：
 * ================================================
 */

public class PlantFatherHolder extends BaseViewHolder<PlanProductVO.ProductStandardBean.PhaseMsgInfosBean> {

    private TextView tvDate;


    public PlantFatherHolder(ViewGroup parent) {
        super(parent, R.layout.item_plant_father);
        tvDate = $(R.id.tv_date);

    }

    @Override
    public void setData(PlanProductVO.ProductStandardBean.PhaseMsgInfosBean data) {
        super.setData(data);

        tvDate.setText(StringUtil.isStrEmpty(data.getStartTime()) ? "" : data.getStartTime());

    }

}
